package com.iot.openfeignblock;

import com.dc3.common.bean.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * @Author 咕唧
 * @Date 2022/7/18 16:28
 * @Version 1.0
 */
@FeignClient(value = "iot-tenant")
public interface TenantClient {
    @PostMapping("/tenant/usercounts")
    R getCountByTentIdAndUserIds(@RequestBody List<String> userIds, @RequestParam("tenantId") String tenantId);

    @PostMapping("/tenant/binduser")
    R bindUser2Tenant(@RequestBody Map dc3TenantBind);
}
